<!DOCTYPE HTML>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
  <title>spring-boot模版渲染</title>
  <meta http-equiv="Content-type" content="text/html;charset=UTF-8"/>
</head>
<body>

<table>
  <tr>
    <td>a</td>
    <td>a</td>
    <td>姓名</td>
    <td>年龄</td>
    <td>偶数</td>
    <td>奇数</td>
  </tr>
  <!--memberStat就是前面的索引-->
  <tr th:each="member,memberStat:${allMembers}">
    <td th:text="${memberStat.index+1}"/>
    <td th:text="${member.mid}"/>
    <td th:text="${member.name}"/>
    <td th:text="${member.age}"/>
    <td th:text="${memberStat.even}"/>
    <td th:text="${memberStat.odd}"/>
  </tr>

</table>


</body>
</html>